﻿/*CREATE TRIGGER [dbo].[Estados_DeletionTrigger] 
    ON [Estados] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Estados_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[EstadoGuid] = [Estados_Tombstone].[EstadoGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Estados_Tombstone] 
    ([EstadoGuid], DeletionDate)
    SELECT [EstadoGuid], GETUTCDATE()
    FROM deleted 
END*/